Current Crawl 
<span class="monitrix-crawl-factoid">
  @{
    val crawlLog = uk.bl.monitrix.Global.getBackend().getCrawlLog();
    val timeOfLastActivity = crawlLog.getTimeOfLastCrawlActivity();
    
    if ((System.currentTimeMillis - timeOfLastActivity) > (10 * 60 * 1000)) {
      // Crawl is idle for more than 10 minutes
      "idle since " + uk.bl.monitrix.NumberFormat.since(timeOfLastActivity)
    } else {
      // Crawl is running
      "running since " + uk.bl.monitrix.NumberFormat.since(crawlLog.getCrawlStartTime()) 
    }
  }
</span>